package com.sc.service.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.sc.entity.Goods;
import com.sc.entity.vo.ProductInfoVO;
import com.sc.mapper.GoodsMapper;
import com.sc.service.IGoodsService;
import org.springframework.stereotype.Service;

@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {
    @Override
    public ProductInfoVO getProductInfo(Goods goods) {
        return baseMapper.getProductInfo(goods);
    }

    @Override
    public void addSoldNum(Goods goods) {
        baseMapper.addSoldNum(goods);
    }


}
